package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("字典")
public class Dict {
    @ApiModelProperty("字典id")
    int id;
    @ApiModelProperty("字典编码")
    @NotBlank(message = "code不能为空！！！")
    String code;
    @ApiModelProperty("字典名称")
    @NotBlank(message = "name不能为空！！！")
    String name;
    @ApiModelProperty("父级id")
    int pid;

    @ApiModelProperty("排序")
    int sorts;

    String createTime;
    String updateTime;
    int isdel;
}
